package com.atxwq.shop.manager.mapper;

import com.atxwq.shop.model.dto.system.SysUserDto;
import com.atxwq.shop.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.xmlbeans.impl.xb.xmlconfig.Extensionconfig;

import java.util.List;

/**
 * @Description 用户持久层
 * @Date 2025/5/7 16:12
 * @Created by 12336
 */

@Mapper
public interface SysUserMapper {

     SysUser selectUserInfoByUserName(String userName);

     /**
      *
      * 分页查询用户
      * @param sysUserDto
      * @return
      */
     List<SysUser> findByPage(SysUserDto sysUserDto);

     /**
      * 添加用户
      * @param sysUser
      */
     void saveSysUser(SysUser sysUser);

     /**
      * 修改用户
      * @param sysUser
      */
     void updateSysUser(SysUser sysUser);

     /**
      * 删除用户
      * @param userId
      */
     void deleteSysUserById(Long userId);
}
